package com.atguigu.exam.controller;

/**
 * projectName: day23_exam-system-server
 *
 * @author: 赵伟风
 * description:
 */
public class StringDemo {

    public static void main(String[] args) {
        String content = "```jsonxvbaaaaaaaaaaaaaaasdsadsadasdasd```";
        int start = content.indexOf("```json");
        System.out.println("start = " + start);
        int end = content.lastIndexOf("```");
        System.out.println("end = " + end);

        String substring = content.substring(start+7, end);
        System.out.println("substring = " + substring);

    }

}
